/******************************************************************************
 Copyright (c) 2024-2025 Qualcomm Technologies International, Ltd.
 All Rights Reserved.
 Qualcomm Technologies International, Ltd. Confidential and Proprietary.

******************************************************************************/
/*
FILE NAME
    gatt_ras_server_debug.h

DESCRIPTION
    Header file for the GATT RAS server library debug functionality.
*/
#ifndef GATT_RAS_SERVER_DEBUG_H_
#define GATT_RAS_SERVER_DEBUG_H_

#include "lea_logging.h"

#ifdef INSTALL_CHANNEL_SOUNDING_SUPPORT

#define LEA_RAS_LOG_ENABLE 0x08000000
#define RAS_LOG_MASK 0x0FFFFFFF

#if (defined(LEA_RAS_LOG_ENABLE) && defined(RAS_LOG_MASK) && (LEA_RAS_LOG_ENABLE & RAS_LOG_MASK) && defined(CSR_LOG_ENABLE) && defined(LE_AUDIO_ENABLE))

#define GATT_RAS_SERVER_INFO(...) CSR_LOG_TEXT_INFO((CsrBtRasLto, 0, __VA_ARGS__))
#define GATT_RAS_SERVER_DEBUG(...) CSR_LOG_TEXT_DEBUG((CsrBtRasLto, 0, __VA_ARGS__))
#define GATT_RAS_SERVER_WARNING(...)  CSR_LOG_TEXT_WARNING((CsrBtRasLto, 0, __VA_ARGS__))
#define GATT_RAS_SERVER_ERROR(...)  CSR_LOG_TEXT_ERROR((CsrBtRasLto, 0, __VA_ARGS__))
#define GATT_RAS_SERVER_PANIC(...)  {CSR_LOG_TEXT_ERROR((CsrBtRasLto, 0, __VA_ARGS__)); CsrPanic(CSR_TECH_BT, CSR_BT_PANIC_MYSTERY, __VA_ARGS__);}

#else

#define GATT_RAS_SERVER_INFO(...)
#define GATT_RAS_SERVER_DEBUG(...)
#define GATT_RAS_SERVER_WARNING(...)
#define GATT_RAS_SERVER_ERROR(...)
#define GATT_RAS_SERVER_PANIC(...)  {CsrPanic(CSR_TECH_BT, CSR_BT_PANIC_MYSTERY, __VA_ARGS__);}

#endif

#endif /* INSTALL_CHANNEL_SOUNDING_SUPPORT */

#endif /* GATT_RAS_SERVER_DEBUG_H_ */
